/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ajz.service;

import java.util.List;

import org.aspectj.weaver.loadtime.Aj;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.ajz.entity.AjzRecord;
import com.thinkgem.jeesite.modules.ajz.dao.AjzRecordDao;

/**
 * 记录表Service
 * @author whh
 * @version 2017-10-10
 */
@Service
@Transactional(readOnly = true)
public class AjzRecordService extends CrudService<AjzRecordDao, AjzRecord> {
	
	//根据baseinfo获取ajzrecordList
		public List<AjzRecord> getRealAjzRecordListByBaseinfoId(AjzRecord ajzRecord){
			return dao.getRealAjzRecordListByBaseinfoId(ajzRecord);
		}
		
	//根据baseinfo获取ajzrecordList
	public Page<AjzRecord> findRealAjzRecordPageByBaseinfoId(Page<AjzRecord> page, AjzRecord ajzRecord){
		ajzRecord.setPage(page);
		List<AjzRecord> ajzRecordList = dao.getRealAjzRecordListByBaseinfoId(ajzRecord);
	    page.setList(ajzRecordList);
	    return page;
	}
	
	public AjzRecord get(String id) {
		return super.get(id);
	}
	
	public List<AjzRecord> findList(AjzRecord ajzRecord) {
		return super.findList(ajzRecord);
	}
	
	public Page<AjzRecord> findPage(Page<AjzRecord> page, AjzRecord ajzRecord) {
		return super.findPage(page, ajzRecord);
	}
	
	@Transactional(readOnly = false)
	public void save(AjzRecord ajzRecord) {
		super.save(ajzRecord);
	}
	
	@Transactional(readOnly = false)
	public void delete(AjzRecord ajzRecord) {
		super.delete(ajzRecord);
	}
	
}